package dashboardDao

import (
	"gitee.com/yangguoliang001/go-gin-vue3/BO"
)

func (d *dashboardDao) QueryMysqlVersion() (mysqlInfo BO.MysqlInfo, err error) {
	// 使用 mysqlVersion 驼峰命名，获取不到
	err = d.DB.Debug().Raw("SELECT version() as mysql_version").Scan(&mysqlInfo).Error
	//fmt.Println("******", mysqlInfo, mysqlInfo.MysqlVersion)
	return
}
